<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index');

    //用户
    $router->resource('user', UserController::class);
    //天气
    $router->resource('weather', WeatherController::class);
    //钓场
    $router->resource('fishing_site', FishingSiteController::class);
    //渔具店
    $router->resource('shop', ShopController::class);
    //文章
    $router->resource('article', ArticleController::class);
    //公告
    $router->resource('announcement', AnnouncementController::class);
    //直播间
    $router->resource('live_room', LiveRoomController::class);
    //鱼情监控
    $router->resource('fishing_site_monitor', FishingSiteMonitorController::class);
});